app.controller('MainCtrl', function ($scope, $state) {
    $scope.user = {
      name: "admin",
      password: 'password'
    };

    $scope.msg = {
      error: ''
    };

    $scope.login = function () {
      $state.go("login");
    };
  });
